package com.soulkun.smarthome.ui.main.scene.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.soulkun.smarthome.logic.model.AutoData
import com.soulkun.smarthome.logic.model.ConditionData
import com.soulkun.smarthome.logic.model.JobData
import com.soulkun.smarthome.logic.model.OnekeyData

class AppMainSceneAutoViewModel : ViewModel() {

    val autoListLiveData = MutableLiveData<ArrayList<AutoData>>()

    init {
        autoListLiveData.value = arrayListOf(
            AutoData(1, arrayListOf(ConditionData(1, "条件1")), arrayListOf(JobData(1, "工作1"))),
            AutoData(2, arrayListOf(ConditionData(1, "条件1"), ConditionData(2, "条件222222222222222222222222222222222222222")), arrayListOf(JobData(1, "工作1"))),
            AutoData(1, arrayListOf(ConditionData(1, "条件1")), arrayListOf(JobData(1, "工作1"), JobData(2, "工作2"))),
        )
    }

}